/**
 * @file main.cpp
 * @author 张奕欣 (3190105655@zju.edu.cn)
 * @brief 
 * @version 0.1
 * @date 2022-12-24
 * 
 * @copyright Copyright (c) 2022
 * 
 */

#include "caculator.h"
using namespace std;

int main()
{
    cout << "Surpport Operator: +,-,*,/,^. Other Operator: ()" << endl;

    string exp;
    /*
    exp = "2^(1+3)-5*(15.23)/(1 + 2)*3-5";
    cout << "input1: " << exp << endl;
    cout << "output1: " << getResult(exp) << endl;

    exp = "1.25+(3*(1+2^2)*3-43)^(4-2)";
    cout << "input2: " << exp << endl;
    cout << "output2: " << getResult(exp) << endl;

    exp = "2^(1+3))-5*(15.23)/(1+2)*3-5";
    cout << "input3: " << exp << endl;
    //cout << "output3: " << getResult(exp) << endl;

    exp = "2^(1+3)-5*(15.23)/(1-1)*3-5";
    cout << "input4: " << exp << endl;
    cout << "output4: " << getResult(exp) << endl;
    */
   
   getline(cin,exp);
   cout << "output: " << getResult(exp) << endl;
}
